home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-09-28 | 976 b | 26 lines | [TEXT/MPS ] |
- #
- # File: PostScriptCompile.se
- #
- # Contains: This StreamEdit Script in conjunction with an MPW script will act as the
- # "PostScript compiler"
- # It removes all blank lines, all comments, and all extra space/tabs.
- # It also encloses each line in quotes.
- # The MPW script portion adds the resource header, etc…
- #
- # Copyright: © 1995-1997 by Apple Computer, Inc., all rights reserved.
- #
- #
-
- Option AutoDelete
-
- /([∂t ])«2,»/ Replace // " " #get rid of multiple spaces and tabs
- /•∂n/ Next #move to next line if left blank.
- /[∂t ]*([¬%]*)®1≈/ Change ®1 #gets rid of tab/space at beginning and comment at the end
-
- /•∂n/ Next #move to next line if left blank.
- /([∂t ])«2,»/ Replace // " " #get rid of multiple spaces and tabs
- /•∂n/ Next #move to next line if left blank.
- /[∂t ]*([¬%]*)®1≈/ Change ®1 #gets rid of tab/space at beginning and comment at the end
-
- Print '∂t∂"'.'∂\n∂"' #enclose what's left in quotes and \n
-